package org.example.controller;

import org.example.util.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/interceptor")
@CrossOrigin(origins = "*",maxAge = 3600)
public class InterceptorController {
    @GetMapping("/403.html")
    public Result noToken(){
        return Result.error().data("msg","你没有权限访问").setCode(403);
    }
}
